class commonResponse:
    def __init__(self ):
        self.error       = 0
        self.userdata    = None
    #error = 
    #-1 undefined error
    #0 no error
    #1 new user has exist
    #2 no user exist
    #3 password error 
    #4 user hasn't login
    #5 restaurant record has exist
    #6 restaurant record not exist
    #7 restaurant queue hasn't start yet
    #8 not restaurant manager
    
    def setcommonError( self,whatError):
        self.error = whatError
        
    def setuserdata(self , data ):
        self.userdata = data            
